package com.kingdee.eas.fdc.basecrm.app;

import org.apache.log4j.Logger;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.Context;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.fdc.basedata.FDCSQLBuilder;

public class FDCReceivingBillEntryControllerBeanEx extends
		FDCReceivingBillEntryControllerBean {

    private static Logger logger = Logger.getLogger("com.kingdee.eas.fdc.basecrm.app.FDCReceivingBillEntryControllerBeanEx");
	
	public FDCReceivingBillEntryControllerBeanEx() {
		super();
	}

	protected void _updateState(Context ctx, String entryId)
			throws BOSException, EASBizException {
		FDCSQLBuilder builder = new FDCSQLBuilder(ctx);
		StringBuffer sql = new StringBuffer();
        sql.append("update T_BDC_FDCReceivingBillEntry set FIsReceiveGather = 0 ");
        sql.append("where fid in ("+entryId+")");
        builder.appendSql(sql.toString());
        builder.executeBatch();
	}
}
